﻿@model Media.Core.Models.Tv.SeriesInfo
@using Media.Core.Helpers;
@using Media.Core.Helpers.Main;

@{
    ViewBag.Title = Model.SeriesName;
}
<link rel="stylesheet" href="@Url.Content("~/Content/Peach/css/sprite.tables.css")"> <!-- SPRITE: Tables styling -->

<h2>
    <img src="@(GetDirectory.Location("Tv Banners") + Model.BannerImage)"/>
    <div style="display:inline-block;">
        <ul>
            <li><b>Rating:</b> @(Model.Rating + "/10")</li>
            <li><b>Release:</b> @Model.ReleaseDate.Replace("12:00AM", "")</li>
            <li><b>Status:</b> @Model.Status</li>
        </ul>
        <ul>
            <li><b>Seasons:</b> @Model.Seasons</li>
            <li><b>Episodes:</b> @Model.Episodes</li>
        </ul>
    </div>
</h2>


<br />
<section style="float:left;">
<div id="TvInfo" >

    <div id="TvExtraInfo" style="width: 400px;">
        <b>Description:</b><br /> @Model.Description
    </div>
</div>
</section>

<section style="float:left; margin-left:231px;margin-top:-26px;">
<div>
    <h3>Seasons</h3>
@*    <table>
        @foreach (var season in Model.SeasonImages)
        {
            <tr>
                <td><img src="@(GetDirectory.Location("Tv Banners") + season.ToString())"/></td>
            </tr>
        }
    </table>*@
    <table class="table">
        @foreach (var Season in Model.SeasonsList)
        {
            <tr>
                <td><b><a href="/Tv/Season?TvId=@(Model.Id)&SeasonId=@(Season.TvSeasonId)"> @("Season " + Season.SeasonNumber)</a></b></td>
                <td>@(Season.StartDate + " - " + Season.EndDate) </td>
                <td>@{
                        if (Season.isWatched == false)
                        {
                            @:Haven't Seen
                        }
                        else
                        {
                            @: Watched
                        }
                     }
                </td>
            </tr>
        }
    </table>
</div>
</section>
